package com.exam.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.exam.demo.entity.ExamInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 功能描述
 *
 * @author yxj30
 * @date 2022/03/16  19:31
 */
@Mapper
public interface ExamInfoMapper extends BaseMapper<ExamInfo> {

    Page<ExamInfo> selectScore(Page<Object> objectPage,@Param("paper_name") String paperName,@Param("student_id") String studentId);

    Page<ExamInfo> checkPaper(Page<Object> objectPage,@Param("status") Integer status,@Param("paper_name") String paperName,@Param("student_name") String studentName);

    Page<ExamInfo> getAnswerByStudentIdAndPaperId(String paperId, String studentId);
}
